﻿using Common.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CToolsWin.Network
{
    public partial class ShowHtmlStr : Form
    {
        public ShowHtmlStr(string strUrl, Dictionary<string, string> dicParams, Dictionary<string, string> dicHeaders = null, Method _method = Method.Get)
        {
            InitializeComponent();

            string resStr = new CToolsWin.BLL.CommonCrawler(0, 1, dicParams, dicHeaders, Method.Get).GetHtmlStr(strUrl);// HttpHelper.RequestWeb(webRequest, Encoding.UTF8, dicParams);
            txtHtml.Text = resStr;
        }
    }
}
